package com.yz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yz.entity.UserEntity;

import java.sql.SQLException;

/**
 * @className: UserMapper
 * @author: shuishui
 * @date: 2022/12/02 19:28
 */
public interface UserMapper extends BaseMapper<UserEntity> {
    UserEntity selectByActivationCode(String activationCode) throws Exception;
        //通过用户名查找信息
    UserEntity selectByUsername(String username)  throws Exception;

    void updateHeaderUrl(Integer id, String filePath);

    Integer changePassword(Integer id, String newPassword) throws SQLException;
}
